﻿/*****************************************************************//**
 * @file    FITKViewAdaptorGeoPartFeaturePreview.h
 * @brief   Adaptor for geometry part feature preview data.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2025-01-14
 *********************************************************************/

#ifndef __FITKVIEWADAPTORGEOPARTFEATUREPREVIEW_H__
#define __FITKVIEWADAPTORGEOPARTFEATUREPREVIEW_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for 'geometry part feature preview'.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2025-01-14
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorGeoPartFeaturePreview : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorGeoPartFeaturePreview);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2025-01-14
         */
        explicit FITKViewAdaptorGeoPartFeaturePreview() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2025-01-14
         */
        ~FITKViewAdaptorGeoPartFeaturePreview() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2025-01-14
         */
        bool update() override;

    };

    // Regist geometry part feature preview adaptor
    Register2FITKViewAdaptorFactory(GeoPartFeaturePreview, AbaqusData::FITKAbaqusPart, FITKViewAdaptorGeoPartFeaturePreview);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORGEOPARTFEATUREPREVIEW_H__